package abstractdemo2;
public class Test {
    public static void func(Shape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        func(new Circle());
        func(new Rectangle());
        func(new Triangle());
    }
}